export const NotificationMessage = GObject.registerClass(
class NotificationMessage extends MessageList.Message {
_init(notification) {
- super._init(notification.source, notification.title, notification.bannerBodyText);
+ super._init(notification.source, notification.title, notification.body);
this.setUseBodyMarkup(notification.bannerBodyMarkup);
this.notification = notification;
this.datetime = n.datetime;
this.setIcon(this._getIcon());
this.setTitle(n.title);
- this.setBody(n.bannerBodyText);
+ this.setBody(n.body);
this.setUseBodyMarkup(n.bannerBodyMarkup);
}
this.isTransient = false;
this.privacyScope = PrivacyScope.USER;
this.forFeedback = false;
- this.bannerBodyText = null;
+ this.body = null;
this.bannerBodyMarkup = false;
this.sound = null;
this._soundPlayed = false;
});
this.title = title;
- this.bannerBodyText = banner;
+ this.body = banner;
this.bannerBodyMarkup = params.bannerMarkup;
if (params.datetime)
continue;
let body = '';
- if (n.bannerBodyText) {
- const bodyText = n.bannerBodyText.replace(/\n/g, ' ');
+ if (n.body) {
+ const bodyText = n.body.replace(/\n/g, ' ');
body = n.bannerBodyMarkup
? bodyText
: GLib.markup_escape_text(bodyText, -1);